-- GENERATED SPELL FOR [Orc Wolf] --


function spell0_21748(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(37454,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21748', 0, 1)
end

function spell1_21748(pUnit, Event) --@Howl,n/a--
pUnit:FullCastSpellOnTarget(37502,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21748', 20000, 1)
end

function Sorts_21748(pUnit, Event)
local choix_sorts_21748 = math.random(0, 1)
if choix_sorts_21748 == 0 then
pUnit:RegisterEvent('spell0_21748', 1, 1)
end
if choix_sorts_21748 == 1 then
pUnit:RegisterEvent('spell1_21748', 1, 1)
end
end

function mob21748_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21748', math.random(1500, 3000), 1)
end

function mob21748_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21748_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21748_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21748, 1, 'mob21748_Action')
RegisterUnitEvent(21748, 2, 'mob21748_Leave')
RegisterUnitEvent(21748, 3, 'mob21748_Kill')
RegisterUnitEvent(21748, 4, 'mob21748_Die')
